package com.zxc.oauth.service

interface TokenService<T> {

    fun createAccessToken(t: T): OauthToken

    fun createRefreshToken(t: T): OauthToken

    fun accessTokenVerify(content: String): Boolean

    fun accessTokenDecode(content: String): T

    fun refreshTokenDecode(content: String): T
}

data class OauthToken(

    var token: String,

    var expiresIn: Long
)